Current Location: Home> Function Categories> mt_getrandmax

mt_getrandmax

Display the maximum possible value of a random number
Name:mt_getrandmax
Category:math
Programming Language:php
One-line Description:Displays the maximum possible value of the random number.

Definition and usage

mt_getrandmax() displays the maximum possible value of the random number.

Example

 <?php
echo mt_getrandmax ( ) ;
?>

Try it yourself

grammar

 mt_getrandmax ( )

illustrate

Returns the largest random number that can be returned by calling mt_rand() .

Similar Functions
  • Generate better random numbers mt_rand

    mt_rand

    Generatebetterrandom
  • Returns log(1 + number), and can calculate the exact result even when the value of number is close to zero. log1p

    log1p

    Returnslog(1+number)
  • Calculate the oblique length of a straight triangle hypot

    hypot

    Calculatetheobliquel
  • Get the pi value pi

    pi

    Getthepivalue
  • Returns the remainder of the floating point number of division fmod

    fmod

    Returnstheremaindero
  • Convert octal to decimal octdec

    octdec

    Convertoctaltodecima
  • Find the maximum value max

    max

    Findthemaximumvalue
  • Determine whether it is infinite is_infinite

    is_infinite

    Determinewhetheritis
Popular Articles